import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
  return axios({
    url: assessCheckApi.queryJobByJobId,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 查询所有的审评员互评记录
export function queryAllJcyHpjlList(params){
  return axios({
    url: assessCheckApi.queryAllJcyHpjlList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 选派人员评价-一键清空评价
export function xpHcyPjToEmpty(params){
  return axios({
    url: assessCheckApi.xpHcyPjToEmpty,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 审评员互评一键清空
export function jcyhpYjQk(params){
  return axios({
    url: assessCheckApi.jcyhpYjQk,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 审评员互评一键优秀
export function jcyhpYjyx(params){
  return axios({
    url: assessCheckApi.jcyhpYjyx,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 选派人员评价-一键优秀
export function xpHcyPjToOneExcellent(params){
  return axios({
    url: assessCheckApi.xpHcyPjToOneExcellent,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 刷新选派人员评价
export function queryXpHcy(params){
  return axios({
    url: assessCheckApi.queryXpHcy,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 对选派人员评价
export function xpHcyPj(data){
  return axios({
    url: assessCheckApi.xpHcyPj,
    method:'put' ,
    data:{...data},
    url_1:'outside',
  })
}

// 日常考评流程-保存接口
export function saveFlow(data){
  return axios({
    url: assessCheckApi.saveFlow,
    method:'post',
    data:{...data},
    url_1:'outside',
  })
}

// 日常考评流程-提交接口
export function submitFlow(data){
  return axios({
    url: assessCheckApi.submitFlow,
    method:'post',
    data:{...data},
    url_1:'outside',
  })
}

// 查询评价人的审评员互评记录
export function queryPjrJcyHpjlList(params){
  return axios({
    url: assessCheckApi.queryPjrJcyHpjlList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 审评员互评-评价更新
export function updateJcyhpPj(data){
  return axios({
    url: assessCheckApi.updateJcyhpPj,
    method:'put' ,
    data:{...data},
    url_1:'outside',
  })
}

// 退回上一环节流程任务
export function returnUpperFlowJob(data){
  return axios({
    url: assessCheckApi.returnUpperFlowJob,
    method:'post',
    data:{...data},
    url_1:'outside',
  })
}

// 下载个人签名
export function downMyQm(params){
  return axios({
    url: assessCheckApi.downMyQm,
    method:'get' ,
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

